<?php
class Form_Event extends Zend_Form
{
    public function __construct($options=array())
    {
		/*parent::__construct($options);
		$this->setMethod('post');
		$this->addPrefixPath('Lion_Form_Element', '../library/Form/Element/', 'element');
		
		Zend_Loader::loadClass('Customer', array('../application/default/models/'));
		$this->setMethod('post');
		$userid = Zend_Auth::getInstance()->getStorage()->read()->userid;
		
		$mod_customer = new Customer();
		$cust_arr = $mod_customer->listCustomersByUserId($userid);
	   
		if(count($cust_arr) > 0)
		{
		    $customer = new Zend_Form_Element_Select('customer_id');
			$customer ->setLabel('Customer');
			$customer->setOptions(array('class'=>'input-2'));
			
			$customer->addMultiOption('', 'Select Customer'); 		  
	        foreach ($cust_arr as $cust_entry)
			{
				$customer->addMultiOption($cust_entry['customer_id'], $cust_entry['customer_name']);
			}
			
			$this->addElement($customer);
			
			$this->addElement('text', 'customer_code', array(
	            'label'      => 'Customer Code:',
	            'readonly'	 => 'readonly',            
	            'filters'    => array('StringTrim'),
	            'class'		 => 'inp-form',
	            'validators' => array(
	            	array('validator' => 'StringLength', 'options' => array(0, 100))
	            )
        	));
		}*/
		$this->setDecorators( array( array('ViewScript', array('script' => 'addevent.phtml'))));  
    }
}
